package chat;

import networkedmodules.Module;
import networkedmodules.Update;

public class MessageUpdate extends Update
{
    private static final long serialVersionUID = 1L;
    
    private Message message;

    public MessageUpdate(Message m, String key)
    {
        message = m;
        this.setKey(key);
    }
    
    public void performUpdate(Module module)
    {
        ChatModule m = (ChatModule)module;
        m.addMessage(message);
    }

}
